package com.yidutamll.productpublish.action;

import com.yidutamll.productpublish.service.ProductPublishService;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import com.yidu.tmall.common.domain.YiduSpecificationType;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.annotation.Resource;

/**
 * @描述：
 * @ClassName:yidutmall
 * @backage:com.yidutamll.productpublish.action
 * @Date:2020 2020/2/9 13:09
 * @Author:易嵘
 **/

@Controller
@RequestMapping
public class ProductPublishController {

    @Resource
    ProductPublishService productPublishService;

    @GetMapping("productpublish/{id}")
    public YiduSpecificationType finById(@PathVariable("id") String id){
        System.out.println(id+"+++++++++++++++++++");
        System.out.println(productPublishService.selectByPrimaryKey(id)+"==================");
        return  productPublishService.selectByPrimaryKey(id);
    }
}
